package com.itheima.service;

import com.itheima.pojo.UmsAdmin;
import com.itheima.vo.PageResultVo;
import com.itheima.vo.UmsInfoVo;

import java.util.List;

public interface UmsAdminApi {
    UmsAdmin login(String username);

    UmsAdmin findById(Long userId);

    PageResultVo list(String keyword, Integer pageNum, Integer pafeSize);

    boolean deleteById(Long userId);

    boolean register(UmsAdmin admin);

    List<UmsAdmin> selectAll();

    void updateAdmin(UmsAdmin admin);

    void updatePassword(UmsAdmin admin);

    void updateStatus(Long id, Integer status);
}
